<? $this->render('header') ?>
<h4>数据列表及分页</h4>
<h5 style="color:red">表名：egp_user</h5>
<p><?=$paginator->output()?></p>
<p><table border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <th height="30" bgcolor="#EEEEEE">username</th>
    <th height="30" bgcolor="#EEEEEE">nickname</th>
    <th height="30" bgcolor="#EEEEEE">homepage</th>
  </tr>
  <? foreach ($paginator as $item) { ?>
  <tr>
    <td bgcolor="#FFFFFF"><?=$item['username']?>&nbsp;</td>
    <td bgcolor="#FFFFFF"><?=$item['nickname']?>&nbsp;</td>
    <td bgcolor="#FFFFFF"><?=$item['homepage']?>&nbsp;</td>
  </tr>
  <? } ?>
</table></p>
<p><?=$paginator->output('digg')?></p>
<p><a href="<?=$this->url(array('controller' => 'example', 'action' => 'index'), true)?>">返回示例首页</a></p>
<? $this->render('footer') ?>